//
//  UITextField_public extension.swift
//  Wanke
//
//  Created by BO ZHOU on 2020/10/5.
//

import UIKit

public extension UITextField {
    
    /** 设置placeHolder的颜色 */
    var placeholderColor: UIColor? {
        set {
            /** 设置placeHolder的颜色 */
            guard let ivar = class_getInstanceVariable(UITextField.self, "_placeholderLabel"),
                  let label = object_getIvar(self, ivar) as? UILabel else {return}
            label.textColor = newValue
        }
        get {
            return nil
        }
    }
    
    
}
